<?php get_instance()->view('common/header');?>
<body>
<?php if (!empty($list)): foreach ($list as $k => $v):?>
    <div class="messageinfo">
        <a href="<?php echo getUrl('message/details?message_id='.$v['id'])?>">
            <span <?php if ($v['is_read'] == 1):?> class="weui-badge weui-badge_dot zi-badge_dot pos" <?php else:?> class="weui-badge_dot zi-badge_dot pos" <?php endif;?> style="left:0.5em;top:0.85em;"></span>
            <h1 class="vCenter heng f09 mb5 pt5"><?php echo $v['title']?><span class="fr f08 cor6"><?php echo $v['addtime']?></span></h1>
            <p class="f07 contentfonts cor9"><?php echo $v['content']?></p>
            <div class="mt5">
                <div class="weui-cells mt0">
                    <div class="weui-cell weui-cell_access p5_0">
                        <div class="weui-cell__bd">
                            <p class="f07 cor9">查看详情</p>
                        </div>
                        <div class="weui-cell__ft"></div>
                    </div>
                </div>
            </div>
        </a>
    </div>
<?php endforeach; else:?>
    <div class="statebox chuizhi jdjz" style="flex: 1;height: 100%;">
        <img class="stateimgda mb5" src="<?php echo $this->staticUrl?>img/png/pic46.png" alt="">
        <span class="f11 cor9 tc mb20">亲，还没有收到消息呢！</span>
    </div>
<?php endif;?>
</body>
<script src="<?php echo $this->staticUrl?>ijs/base.js"></script>
</html>